package com.duan.boot.mapper;

import com.duan.boot.entity.News;
import com.duan.boot.entity.Task;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TaskMapper {

    List<Task> getTaskList();

    Task getById(@Param("id") Long id);

    Task getByName(@Param("name") String name);

    Integer insertOaTask(@Param("task") Task task);

    List<Task> getByState(@Param("state")Integer state);

    List<Integer> getAllId();

    List<String> getAllName();
    //List<News> findAll();
}
